package com.imcrl.core.config
{
	/**
	 * 抽像节点
	 * @author crl
	 * 
	 */	
	public class AbstractSection implements IXMLBinder
	{
		protected var _value:String;
		protected var _name:String;
		
		protected var conf:Configuration;
		public function AbstractSection()
		{
		}
		
		
		public function set config(value:Configuration):void{
			this.conf=value;
		}
		
		public function bindXML(xml:XML):void{
			_name=xml.@name;
			_value=xml.@value;
		}
		
		
		
		public function getDefineClass():Class{
			throw new Error("子类没在重写");
		}
		
		
		/**
		 * 取得节点值 
		 * @return 
		 * 
		 */		
		public function get value():String
		{			
			return _value;
		}
		
		/**
		 * 设置节点值 
		 * @return 
		 * 
		 */
		public function set value(v:String):void
		{			
			_value=v;
		}

		/**
		 * 取得节点名称(也为节点的key需唯一) 
		 * @return 
		 * 
		 */		
		public function get name():String
		{
			return _name;
		}

		
	}
}